package ppos2.kmlgenerator;

public class GPSreading {

		public double longitude = 0.0;
		public double latitude = 0.0;
		public int tstamp = 0;
		
		public String generateCSVentry()
		{
			return String.valueOf((double)longitude) + "," + String.valueOf((double)latitude) + ",0,";
		}

		public GPSreading(double longitude, double latitude, int tstamp) {
			super();
			this.longitude = longitude;
			this.latitude = latitude;
			this.tstamp = tstamp;
		}

		public double getLongitude() {
			return longitude;
		}

		public void setLongitude(double longitude) {
			this.longitude = longitude;
		}

		public double getLatitude() {
			return latitude;
		}

		public void setLatitude(double latitude) {
			this.latitude = latitude;
		}

		public int getTstamp() {
			return tstamp;
		}

		public void setTstamp(int tstamp) {
			this.tstamp = tstamp;
		}

		@Override
		public String toString() {
			return "GPSreading [longitude=" + longitude + ", latitude="
					+ latitude + ", tstamp=" + tstamp + "]";
		}
		
		

	
}
